package com.lichuang.dedao.listenBooks.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 精选书单表
 * </p>
 *
 * @author kangkang
 * @since 2019-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("selected_books")
@ApiModel(value = "SelectedBooks对象", description = "精选书单表")
public class SelectedBooks implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "精选书的id")
    @TableId(value = "selected_book_id", type = IdType.AUTO)
    private Integer selectedBookId;


    @ApiModelProperty(value = "精选书单主图")
    private String mainImg;

    @ApiModelProperty(value = "精选书单主标题")
    private String mainTitle;

    @ApiModelProperty(value = "精选书单引言")
    @TableField("Introduction")
    private String Introduction;

    @ApiModelProperty(value = "推荐人的id")
    @TableField("Recommender")
    private Integer Recommender;

    @ApiModelProperty(value = "看过的总人数")
    private Integer readPeopleCount;

    @ApiModelProperty(value = "推荐人的说词")
    @TableField("Recommender_excuse")
    private String recommenderExcuse;

    @ApiModelProperty(value = "推荐日期")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否匿名推荐。0；匿名，1：不匿名")
    private Integer anonymous;

    @ApiModelProperty(value = "该精选书单，总推荐了几本书")
    @TableField(exist = false)
    private Integer sumCount;


}
